package demo2;
/**
 * 给字符串数组排序后输出
 */

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
      String[] strings = {
              "gbc","bc","htch"
      };
      Arrays.sort(strings);
      System.out.println(Arrays.toString(strings));
    }
}
